-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cherry-pick bug fixes to 1.1-dev #15425
Conversation
to avoid copying entire block out of cache Approved by: @nnsgmsone, @LeftHandCold, @XuPeng-SH, @m-schen
PrefixCompare truncates the left operand if it's longer than the right operand, but not vice versa. So we MUST always put the composite key at the left side, and the matching prefix at the right side. Approved by: @XuPeng-SH
@aunjgr Thanks for your contributions! Here are review comments for file pkg/container/types/bytes.go: Pull Request Review:Title:The title of the pull request is clear and concise, indicating that bug fixes are being cherry-picked to the 1.1-dev branch. Body:The body of the pull request provides useful information about the type of PR (BUG), the specific issue it fixes (issue #15196), and the reason for the changes made. It explains the issue related to PrefixCompare function and the necessary adjustment to ensure correct behavior. Changes Made:
Suggestions for Improvement:
By addressing the suggestions mentioned above, the codebase can be improved in terms of functionality, maintainability, and security. It's crucial to maintain a high standard of code quality to ensure the stability and security of the application. Here are review comments for file pkg/container/vector/search.go: Pull Request Review:Title:The title of the pull request is clear and concise, indicating that bug fixes are being cherry-picked to the 1.1-dev branch. Body:The body of the pull request provides relevant information about the type of PR (BUG), the specific issue it fixes (issue #15196), and the reason for the changes made in the PR. It explains the issue related to PrefixCompare and the necessity of placing the composite key on the left side and the matching prefix on the right side. Changes:
Suggestions for Improvement:
Overall, the changes made in the pull request seem to address a specific bug and enhance the functionality of the vector search operations. By incorporating the suggested improvements, the codebase can be further optimized for performance, maintainability, and security.Here are review comments for file pkg/container/vector/utils_test.go: Pull Request Review:Title:The title of the pull request is clear and concise, indicating that bug fixes are being cherry-picked to the 1.1-dev branch. Body:The body of the pull request provides relevant information about the type of PR (BUG), the specific issue it fixes (issue #15196), and the reason for the changes made in the PR. The explanation about PrefixCompare and the necessity of placing the composite key on the left side and the matching prefix on the right side is helpful in understanding the context of the changes. Changes:
Suggestions for Improvement:
By addressing the above suggestions, the code quality, maintainability, and reliability of the test suite can be improved, leading to a more robust codebase. Here are review comments for file pkg/sql/plan/function/func_prefix.go: Pull Request Review:Title and Body:The title of the pull request is clear and concise, indicating that bug fixes are being cherry-picked to the 1.1-dev branch. The body of the pull request provides relevant information about the type of PR, the specific issue it fixes, and the reason for the changes made. It explains the issue with PrefixCompare and the necessary adjustment to ensure correct behavior. The body could be improved by providing more context on the impact of the bug and the importance of the fix. Changes Made:
Issues and Suggestions:
Overall, the pull request addresses the bug related to PrefixCompare effectively, but attention to the mentioned suggestions can further enhance the code quality and maintainability. Conducting thorough testing, especially focusing on the security implications of the changes, is crucial before merging the pull request.Here are review comments for file pkg/vm/engine/disttae/util.go: Pull Request Review:Title:The title of the pull request "cherry-pick bug fixes to 1.1-dev" is clear and indicates that bug fixes are being applied to the 1.1-dev branch. Body:The body of the pull request provides relevant information about the type of PR (BUG), the specific issue it fixes (issue #15196), and the reason for the changes made in the PR. It explains the issue with PrefixCompare and the necessary adjustments to ensure correct behavior. Changes:
Suggestions for Improvement:
By addressing these suggestions, the codebase can be enhanced in terms of security, maintainability, and performance. Overall, the changes made in the pull request seem to address the identified bug and improve the handling of prefix comparisons. However, the suggestions provided above can further enhance the quality and robustness of the codebase. Here are review comments for file pkg/vm/engine/tae/blockio/read.go: Pull Request Review:Title:The title of the pull request is clear and concise, indicating that bug fixes are being cherry-picked to the 1.1-dev branch. Body:
Changes:
Suggestions for Improvement:
By addressing the suggestions above, the codebase can be improved in terms of readability, maintainability, and overall quality. Additionally, incorporating automated tools for code analysis and testing can further enhance the development process. Here are review comments for file pkg/vm/engine/tae/blockio/reader.go: Pull Request Review:Title:The title of the pull request is clear and concise, indicating that bug fixes are being cherry-picked to the 1.1-dev branch. Body:The body of the pull request provides essential information about the type of PR, the specific issue it fixes, and the reason for the changes. It also highlights the specific file where the changes are made and the nature of the modifications. Changes:The changes made in the pull request involve adding an import statement in the Feedback and Suggestions:
Overall:The pull request addresses bug fixes and includes necessary changes in the Here are review comments for file pkg/vm/engine/tae/index/zm.go: Pull Request Review:Title:The title of the pull request is clear and concise, indicating that bug fixes are being cherry-picked to the 1.1-dev branch. Body:The body of the pull request provides essential information about the type of PR, the specific issue it fixes, and the reason for the changes made. It explains the issue related to PrefixCompare function and the changes made in the zm.go file. Changes:
Feedback and Suggestions:
By addressing the security concern, optimizing the code for better efficiency, ensuring consistency, updating documentation, and thorough testing, the pull request can be enhanced to contribute positively to the codebase. |
What type of PR is this?
Which issue(s) this PR fixes:
issue #15196
What this PR does / why we need it:
PrefixCompare truncates the left operand if it's longer than the right operand, but not vice versa. So we MUST always put the composite key at the left side, and the matching prefix at the right side.